package com.hare.common.global.base;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @program: Hare
 * @description: 实体基类
 * @author: Hare
 * @create: 2022-06-19 18:06
 * @Version 6.0.1
 **/
@Data
public class BasePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一UID
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

}
